package com.xl.sst.vo;
import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.stereotype.Service;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xl.sst.utill.DateJsonDeserializer;
import com.xl.sst.utill.DateJsonSerializer;
/*
 * @author yuezhan
 * 用户实体类
 */
@Service
@JsonSerialize(include=JsonSerialize.Inclusion.NON_EMPTY)
public class Users{
	private Integer 	userID;			//用户ID
	private String 		userName;		//用户名
	private String 		password;		//密码
	@JsonSerialize(using=DateJsonSerializer.class)  
    @JsonDeserialize(using=DateJsonDeserializer.class)
	//@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date 		modifyDate;		//修改时间
	private Integer 	modifyUser;		//修改人
	private Integer 	sproperty;		//属性 --0个人 其他为 企业
	private Integer 	status;			//状态：0 正常, 1 用户被锁定
	private String 		trueName;		//真实姓名
	private	String		phone;			//手机
	private	String		address;		//地址
	private	String		businessnum;	//营业执照编号
	private Integer		sgrade;			//用户等级 消费满1万升级为会员
	private String      salt;			//盐
	private String      yzm;            //验证码
	private String      firmName;		//公司名
	public String getFirmName() {
		return firmName;
	}
	public void setFirmName(String firmName) {
		this.firmName = firmName;
	}
	public String getYzm() {
		return yzm;
	}
	public void setYzm(String yzm) {
		this.yzm = yzm;
	}
	public String getSalt() {
		return salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	public Integer getUserID() {
		return userID;
	}
	public void setUserID(Integer userID) {
		this.userID = userID;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public Integer getModifyUser() {
		return modifyUser;
	}
	public void setModifyUser(Integer modifyUser) {
		this.modifyUser = modifyUser;
	}
	public Integer getSproperty() {
		return sproperty;
	}
	public void setSproperty(Integer sproperty) {
		this.sproperty = sproperty;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getBusinessnum() {
		return businessnum;
	}
	public void setBusinessnum(String businessnum) {
		this.businessnum = businessnum;
	}
	public Integer getSgrade() {
		return sgrade;
	}
	public void setSgrade(Integer sgrade) {
		this.sgrade = sgrade;
	}
	@Override
	public String toString() {
		return "Users [userID=" + userID + ", userName=" + userName + ", password=" + password + ", modifyDate="
				+ modifyDate + ", modifyUser=" + modifyUser + ", sproperty=" + sproperty + ", status=" + status
				+ ", trueName=" + trueName + ", phone=" + phone + ", address=" + address + ", businessnum="
				+ businessnum + ", sgrade=" + sgrade + ", salt=" + salt + ", yzm=" + yzm + "]";
	}
	
	
		
}
